function basePath(){
    //获取当前网址，如： http://localhost:8080/ems/Pages/Basic/Person.jsp
    var curWwwPath = window.document.location.href;
    //获取主机地址之后的目录，如： /ems/Pages/Basic/Person.jsp
    var pathName = window.document.location.pathname;
    var pos = curWwwPath.indexOf(pathName);
    //获取主机地址，如： http://localhost:8080
    var localhostPath = curWwwPath.substring(0, pos);
    //获取带"/"的项目名，如：/ems
    var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
    //获取项目的basePath   http://localhost:8080/ems/
    var basePath=localhostPath+projectName+"/";
    return basePath;
};
//提示加预估
var t1 = '<div style="background:#f6f6f6;">';
t1 += '<p class="tex"><span class="tb"><img src="static/H5/images/tb.png"/></span><strong>您的贷款申请已提交</strong></p>';
t1 += '<p class="tex">我们将为您推荐以下几家贷款机构，贷款成功率高达90%</p>';
t1 += '</div>'
t1 += '<div style="background:#f6f6f6; padding:0 2%;" class="result clearfix">'
t1 += '<ul style="margin:0 auto;" id="app"></ul></div>'
//可贷款部分
var t2 = '<div class="mayinfo">' +
	'<div class="tex1" style="border:0px;padding:5px 0px;text-align:center;width:100%;"><strong style="color:#b70e0e;font-size:14px;">根据您的条件，以下贷款机构也可能会联系您</strong></div>' +
	'<ul style="background-color: #fff;">' +
	'	<li><img src="static/H5/images/4_04_13.jpg"alt="" />' +
	'		<p>凡普信贷</p>' +
	'	</li>' +
	'	<li><img src="static/H5/images/4_04_4.jpg" alt="" />' +
	'		<p>宜信</p>' +
	'	</li>' +
	'	<li><img src="static/H5/images/4_04_11.jpg" alt="" />' +
	'		<p>微贷网</p>' +
	'	</li>' +
	'	<li><img src="static/H5/images/4_04_3.jpg" alt="" />' +
	'		<p>恒昌恒易</p>' +
	'	</li>' +
	'	<li><img src="static/H5/images/4_04_8.jpg" alt="" />' +
	'		<p>中腾信</p>' +
	'	</li>' +
	'	<li><img src="static/H5/images/4_04_9.jpg" alt="" />' +
	'		<p>厚本金融</p>' +
	'	</li>' +
	'	<div style="clear:both;"></div>' +
	'		</ul>' +
	'	</div>'
//白色表格
//var t5 = '<div class="dingdan">' +
//
//	'		<div class="dingdan_cn">' +
//	'               <p style="text-align:center;color:#fff;line-height:50px;font-size: 1.2em;background:#fc5b03;font-weight:800; width:100%;">价值100万意外险免费送</p>'+
//	'			<div style="padding:15px 3%;background-color: #fff;border-radius:0 0 8px 8px;">' +
//	'				<span><span class="tb"><img src="http://www.ecsage.cn/new/page3/images/tb3.png"/></span><strong style="color:#b70e0e;line-height: 2.5rem;display:inline-block;">申请有礼</strong><abbr style="color:#3cb80c;vertical-align: middle;font-size: 1.1em;">&nbsp; 您的意外险领取成功！</abbr></span>' +
//	'				<p style="line-height: 1.8rem;font-size: 15px;">' +
//	'					恭喜您获得最高保额100万的免费意外险一份。每日仅限100名！保险公司会确认您的信息后发送保单号，并由客服致电确认。</p>' +
//	'				<div class="btn_a" style="padding:10px 40px 2px;">'+
//	'							<span class="nobtn" style="display: inline-block;float:left;"><img src="http://www.ecsage.cn/new/page3/images/fq.png"></span>'+
//	'							<span  class="hover agreebtn" style="display: inline-block;float:right;""><img src="http://www.ecsage.cn/new/page3/images/true.gif"></span>'+
//	'							<div style="clear: both;"></div>'+
//	'						</div>'+
//	'			</div>' +
//	
//				
//	'		</div>' +
//	'	</div>'
//信用卡
var t5 = 	'<div class="dingdan" style="height:324px;max-width:320px;top:10%;">'+
			'   <span id="sptext" class="agreebtn">最高100万意外险免费送</span>'+
			' <span id="sptext2" class="agreebtn">拥有保险单后,您申请的贷款</span>'+
			' <span id="sptext3" class="agreebtn">额度将提高<abbr>3.7</abbr>倍<br/>通过率提高<abbr/>2.5</abbr>倍</span>'+
			' 	<img id="tclose" class="agreebtn" style="position:absolute;z-index:400;" style="width:100%;height:321px;display:block;"src="static/H5/images/tc2.png" />'+
			'	<span id="btnclose" class="agreebtn">点击生成保单</span>'+

			'	</div>'
var t6 = '<div style="display:none;  color:#FFF; text-align:center; font-size:1.2em; line-height:230%; background:linear-gradient(to bottom,#d44848,#c71f1e);">' +
	'		特别推荐：超高额度信用卡' +
	'	</div>' +
	'	<div style="background:#fff;">' +
	'		<ul id="con_bt" style="display: block;">' +
	'			<li style="margin-right:2%;">更多贷款平台</li>' +
	'			<li>10万大额信用卡</li>' +
	'			<div style="clear:both;"></div>' +
	'		</ul>' +
	'		<div class="box1" style="display: none;">' +
	'			<a href="http://www.zhonghongdai.cn/daikuan/x5">' +
	'				<div class="con">' +
	'					<p class="img"><img src="static/H5/images/nwd.jpg" /></p>' +
	'					<p class="con_nr"><span>你我贷</span><br/>' +
	'						<font>有信用卡可申请，额度高达3万</font><br/><strong style="color:#e81a05; font-weight:400; font-size:0.9em;">58764</strong>&nbsp;&nbsp;人已放款' +
	'					</p>' +
	'					<p class="sq"><span>申请</span></p>' +
	'					<div style="clear:both;"></div>' +
	'				</div>' +
	'			</a>' +
	'			<a href="http://www.zhonghongdai.cn/daikuan/x6">' +
	'				<div class="con">' +
	'					<p class="img"><img src="static/H5/images/bk.jpg" /></p>' +
	'					<p class="con_nr"><span>现金白卡</span><br/>' +
	'						<font>5分钟极速放款</font><br/><strong style="color:#e81a05;font-weight:400;font-size:0.9em;">148510</strong>&nbsp;&nbsp;人已放款' +
	'					</p>' +
	'					<p class="sq"><span>申请</span></p>' +
	'					<div style="clear:both;"></div>' +
	'				</div>' +
	'			</a>' +
	'			<a href="http://m.shoujidai.com/index.php/user/specialreg/channel/feedtg001-microsite/code/031Y5Ffc2sb5hB0Mpbgc2uuYfc2Y5FfX/state/STATE.html">' +
	'				<div class="con">' +
	'					<p class="img"><img src="static/H5/images/sjd.jpg" /></p>' +
	'					<p class="con_nr"><span>手机贷</span><br/>' +
	'						<font>借钱就找手机贷！随时随地！</font><br/><strong style="color:#e81a05;font-weight:400;font-size:0.9em;">4860</strong>&nbsp;&nbsp;人已放款' +
	'					</p>' +
	'					<p class="sq"><span>申请</span></p>' +
	'					<div style="clear:both;"></div>' +
	'				</div>' +
	'			</a>' +
	'			<a href="http://www.zhonghongdai.cn/daikuan/x4">' +
	'				<div class="con">' +
	'					<p class="img"><img src="static/H5/images/ppd.jpg" /></p>' +
	'					<p class="con_nr"><span>拍拍贷</span><br/>' +
	'						<font>信用借款1分钟申请，最快1天放款！</font><br/><strong style="color:#e81a05;font-weight:400;font-size:0.9em;">584424</strong>&nbsp;&nbsp;人已放款' +
	'					</p>' +
	'					<p class="sq"><span>申请</span></p>' +
	'					<div style="clear:both;"></div>' +
	'				</div>' +
	'			</a>' +
	'' +
	'		</div>' +
	'		<div class="box1" style="display:block;">' +
	'			<div class="a1">' +
	'				<img src="static/H5/images/lb_02.jpg" />' +
	'				<div class="a1_1">' +
	'					<div class="focus">' +
	'						<div class="images">' +
	'							<div class="item active"><img src="static/H5/images/001.jpg" /></div>' +
	'' +
	'						</div>' +
	'					</div>' +
	'				</div>' +
	'				<div class="a1_2">' +
	'					<div class="focus">' +
	'						<div class="images1">' +
	'							<div class="item1 active"><img src="static/H5/images/01.png" /></div>' +
	'						</div>' +
	'					</div>' +
	'				</div>' +
	'			</div>' +
	'			<div class="b">' +
	'				<img src="static/H5/images/lb_03.gif" />' +
	'				<a class="a1" href="https://ecentre.spdbccc.com.cn/creditcard/indexActivity.htm?data=P1317859&itemcode=jnddqw1050"></a>' +
	'				<a class="a2" href="https://ccclub.cmbchina.com/mca/MPreContract.aspx?cardSel=uc&swbrief=Y&WT.mc_id=N3700MM20612558500YK"></a>' +
	'			</div>' +
	'			<div class="a1">' +
	'				<img src="static/H5/images/lb_04.jpg" />' +
	'				<div class="a1_1">' +
	'					<div class="focus">' +
	'						<div class="images2">' +
	'							<div class="item2 active"><img src="static/H5/images/001.png" /></div>' +
	'' +
	'						</div>' +
	'					</div>' +
	'				</div>' +
	'				<div class="a1_2">' +
	'					<div class="focus">' +
	'						<div class="images3">' +
	'							<div class="item3 active"><img src="static/H5/images/101.png" /></div>' +
	'' +
	'						</div>' +
	'					</div>' +
	'				</div>' +
	'			</div>' +
	'			<div class="a">' +
	'				<img src="static/H5/images/lb_03.gif" />' +
	'				<a class="a" href="http://95508.com/9xp8Ry"></a>' +
	'				<a class="b" href="http://apply.gzcb.com.cn/mobile/index.jsp?pid=0002&all=yes&ch1=ecsage&ch2=401"></a>' +
	'			</div>' +
	'			<div class="a1">' +
	'				<img src="static/H5/images/lb_06.jpg" />' +
	'				<div class="a1_1">' +
	'					<div class="focus">' +
	'						<div class="images4">' +
	'							<div class="item4 active"><img src="static/H5/images/1001.jpg" /></div>' +
	'' +
	'						</div>' +
	'					</div>' +
	'				</div>' +
	'				<div class="a1_2">' +
	'					<div class="focus">' +
	'						<div class="images5">' +
	'							<div class="item5 active"><img src="static/H5/images/01.jpg" /></div>' +
	'						</div>' +
	'					</div>' +
	'				</div>' +
	'			</div>' +
	'			<div class="a">' +
	'				<img src="static/H5/images/lb_03.gif" />' +
	'				<a class="a" href="https://mbank.bankofshanghai.com/pweixin/static/index.jsp?_TransactionId=CreditCardApply&_CardType=0300001616&YLLink=630240"></a>' +
	'				<a class="b" href="https://creditapply.hxb.com.cn/sanfang/cardChoice.html?requestId=150&requestPage=721"></a>' +
	'			</div>' +
	'		</div>' +
	'	</div>'
//t3抽奖部分
var t3 = '<div id="gocj" class="cj" style="background-color:#fff;margin-top:10px;">' +
	'<h2 style="text-align:center;color:#da7138;padding:10px 0px;">送您免费转盘抽大奖</h2>' +
	'		<form method="post" action="index.aspx?c=1001&amp;p=21233&amp;k=b2r3HUfBW6OD71T2_w9Vb25R7H-44o1uMfjIaLn6ihbzOdISdDnaii7kkcz114Rc0TdPUePm" id="form1">' +
	'			<div class="aspNetHidden">' +
	'				<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="QvNEuRjW3QEAWdESFDDltC1RCGojusjx7jC1hFlbqFHD2nDOTE8EYybF25TD+7q9jfAhBQ5Q66btw6swk/ywOmw7aMI7XlQMQWYswmbHOOX/WNo0BZ+5hE8xoF4=">' +
	'			</div>' +
	'			<div class="aspNetHidden">' +
	'				<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="2EF1BE13">' +
	'			</div>' +
	'			<div class="main" style="background-color: red;">' +
	'				<div class="title clearfix">' +
	'					<h2 class="FL">您有<b id="dailyCount">2</b>次抽奖机会</h2>' +

	'				</div>' +
	'				<div id="lottery">' +
	'					<ul class="clearfix">' +
	'						<li class="lottery-unit lottery-unit-0">' +
	'							<p><img src="http://www.ecsage.cn/new/page3/images/pic_fo.png"><span>￥1980元本命佛</span></p>' +
	'							<b style="display:none;" class="jpname">￥1980元生肖本命佛吊坠</b>' +
	'							<b style="display:none;" class="tit">，填写个人资料，马上领取（仅限本日）</b>' +
	'							<b style="display:none;" class="href">http://www.china-cpt.net/fp/002/?cid=B1-01</b>' +
	'						</li>' +
	'						<li class="lottery-unit lottery-unit-1">' +
	'							<p>' +
	'								<img src="http://www.ecsage.cn/new/page3/images/bysjb.png"><span>捕鱼1万金币兑现金</span></p>' +
	'								<b style="display:none;" class="jpname">补鱼电玩城10000游戏金币</b>' +
	'								<b style="display:none;" class="tit">免费领取有机会赢100倍现金（仅限本日）</b>' +
	'								<b style="display:none;" class="href">http://www.dafuhao-ol.com/thirdShare/qpby_10233_0921.htm</b>' +
	'						</li>' +
	'						<li class="lottery-unit lottery-unit-2">' +
	'							<p>' +
	'								<img src="http://www.ecsage.cn/new/page3/images/pic_ku.png"><span>￥1080元功能内裤</span>' +
	'								<b style="display:none;" class="jpname">￥1080元男性功能内裤</b>' +
	'								<b style="display:none;" class="tit">一条，马上领取，重现大男人雄风（仅限本日）</b>' +
	'								<b style="display:none;" class="href">http://www.swissgoods.cn/ucwk/lz3ng/</b>' +
	'							</p>' +
	'						</li>' +
	'						<li class="lottery-unit lottery-unit-7 l2">' +
	'							<p>' +
	'								<img src="http://www.ecsage.cn/new/page3/images/pic_jt.png"><span>免费领降糖胶囊</span>' +
	'								<b style="display:none;" class="jpname">降糖胶囊</b>' +
	'								<b style="display:none;" class="tit">，免费领取降糖胶囊</b>' +
	'								<b style="display:none;" class="href">http://www.shpeixin.cn/zz/zzjt18/?cid=B1-1</b>' +
	'							</p>' +
	'						</li>' +
	'						<li class="l2 begain">' +
	'							<a>马上抽奖</a>' +
	'						</li>' +
	'						<li class="lottery-unit lottery-unit-3 l2">' +
	'							<p>' +
	'								<img src="http://www.ecsage.cn/new/page3/images/pic_hb666.png"><span>188元微信红包</span>' +
	'								<b style="display:none;" class="jpname">￥188元微信红包</b>' +
	'								<b style="display:none;" class="tit">马上领取，给梦想一个机会</b>' +
	'								<b style="display:none;" class="href">http://m.ynhekou.com/?channel_id=ekdh</b>' +
	'							</p>' +
	'						</li>' +
	'						<li class="lottery-unit lottery-unit-6 l3">' +
	'							<p> <img src="http://www.ecsage.cn/new/page3/images/pic_vippic.png"><span>免费减肥套餐</span></p>' +
	'                               <b style="display:none;" class="jpname">免费减肥套餐</b>' +
	'								<b style="display:none;" class="tit">马上领取，给自己一个机会</b>' +
	'								<b style="display:none;" class="href">http://www.sbde.net/jf/?cid=b1-11</b>' +
	'						</li>' +
	'						<li class="lottery-unit lottery-unit-5 l3">' +
	'							<p><img src="http://www.ecsage.cn/new/page3/images/pic_1yuan.png"><span>1元购iPhone 7</span></p>' +
	'								<b style="display:none;" class="jpname">1元购iPhone 7</b>' +
	'								<b style="display:none;" class="tit">竞拍机会，马上竞拍（仅限本日）</b>' +
	'								<b style="display:none;" class="href">https://m.jianfuaosi.com/?channel_id=cf1k</b>' +
	'						</li>' +
	'						<li class="lottery-unit lottery-unit-4 l3 active">' +
	'							<p><img src="http://www.ecsage.cn/new/page3/images/pic_credit2.png"><span>3万元授信</span></p>' +
	'						</li>' +
	'					</ul>' +
	'				</div>' +
	'			</div>' +
	'			<div id="popup1" class="hidden" style="display: none;">' +
	'				<div class="allbg"></div>' +
	'				<div class="popup2">' +
	'					<div class="close">' +
	'						<a onClick="document.getElementById(\'popup1\').style.display=\'none\';"></a>' +
	'					</div>' +
	'					<div class="winPro">' +
	'						<h2></h2>' +
	'						<span>' +
	'			            	<p id="prizeTitle"><b>恭喜你获得“</b><b class="orange">平安i贷最高30000元</b>”<b class="lqtj"></b></p>' +
	'			            	<a id="prizeUrl" onClick="prizeClick(this)" target="_parent" href=""><em style="font-style:normal;background-size: 25px;font-size: 20px;">免费领取</em></a>' +
	'			            </span>' +
	'					</div>' +
	'				</div>' +
	'			</div>' +
	'			<div id="popup2" class="hidden">' +
	'				<div class="allbg"></div>' +
	'				<div class="popup2">' +
	'					<div class="close">' +
	'						<a onClick="document.getElementById(\'popup2\').style.display=\'none\';"></a>' +
	'					</div>' +
	'					<div class="winList">' +
	'						<h2><b>客官，您的抽奖次数已经用完了</b></h2>' +
	'						<ul class="prizeList">' +
	'							' +
	'							<div style="clear: both;"></div>' +
	'						</ul>' +
	'					</div>' +
	'				</div>' +
	'			</div>' +
	'			<div id="popup3" class="hidden">' +
	'				<div class="allbg"></div>' +
	'				<div class="popup3">' +
	'					<div class="close">' +
	'						<a onClick="document.getElementById(\'popup3\').style.display=\'none\';" class="a2"></a>' +
	'					</div>' +
	'					<div class="winList">' +
	'						<h3><b>我的奖品</b></h3>' +
	'						<p id="noPrizeTitle" style="display: none;">您还没有任何奖品</p>' +
	'						<div id="noPrizeButton" class="butt2" style="display: none;">' +
	'							<a onClick="document.getElementById(\'popup3\').style.display=\'none\';">马上抽奖</a>' +
	'						</div>' +
	'						<ul class="prizeList">' +
	'						' +
	'						</ul>' +
	'					</div>' +
	'				</div>' +
	'			</div>' +
	'			<input type="hidden" id="hid_channelid" value="1001">' +
	'			<input type="hidden" id="hid_adsid" value="21233">' +
	'			<input type="hidden" id="hid_adid" value="434">' +
	'		</form>' +
	'	</div>'

//	弹窗
var t4 = '<div class="art">' +
	'			<div class="con">' +
	'				<div id="touch" onclick=""><img src="static/H5/images/touch.png" /></div>' +
	'				<div class="top"><span style="padding-bottom:8px;display:block;">您的贷款申请已提交</span><span style="font-size:1.1em;">恭喜您额外获得<strong' +
	'                 style="display:inline-block;font-size: 1.2rem; color: #fff;margin:-0.1rem 0 0 0;">￥30000</strong>元现金贷款~</span>' +
	'				</div>' +
	'				<div class="input2"><input id="cashbtn" type="button" value="点击立即领取现金" style="height:35px; width:100%; border-radius:30px; text-align:center; background:#3693d3; color:#fff; font-size:1.3em; border:0;-webkit-appearance:none;">' +
	'				</div>' +
	'			</div>' +
	'		</div>' +
	'		<div class="zhemu">' +
	'</div>'
var t444 = '<div class="art">' +
    '			<div class="con">' +
    '				<div id="touch" onclick=""><img src="static/H5/images/touch.png" /></div>' +
    '				<div class="top"><span style="padding-bottom:8px;display:block;">您的贷款申请已提交</span><span style="font-size:1.1em;">恭喜您额外获得<strong' +
    '                 style="display:inline-block;font-size: 1.2rem; color: #fff;margin:-0.1rem 0 0 0;">￥30000</strong>元现金贷款~</span>' +
    '				</div>' +
    '				<div class="input22"><p class="inp-title">您的意外险领取成功！</p><p class="inp-content">您已成功领取中国平安畅行天下一份。中国平安确认您的信息后将发送电子保单号，并由客服确认。感谢您的参与！</p></div>' +
    '			</div>' +
    '		</div>' +
    '		<div class="zhemu">' +
    '</div>'
//文字广告连接
var t7 = '<div style="padding: 0px 10px;padding-bottom:10px">' +
    '<h2 style="color:#fc5b03;line-height: 40px;"><a style="color:#fc5b03; href="http://qr27.cn/CmBE9o"></a>更多贷款产品</h2>' +
	//'<h2 style="color:#fc5b03;line-height: 40px;">免费办信用卡</h2>' +
	//'<p ><a style="color: #3580fb;font-size:14px;line-height:25px;height：25px;" href="https://creditcardapp.bankcomm.com/applynew/front/apply/track/record.html?trackCode=A1218164239637">交通银行信用卡！支持取现，额度最高15万！</a></p>' +
	//'<p ><a style="color: #3580fb;font-size:14px;line-height:25px;height：25px;" href="http://qr27.cn/CmBE9o ">支持取现，民生银行信用卡，最高15万额度</a></p>' +
	//'<p ><a style="color: #3580fb;font-size:14px;line-height:25px;height：25px;" href="https://ultimavip.cn/m/mposter.html?source=lemei_007_t_mposter">想要低息，大额，就来环球黑卡</a></p>' +
	// '<p ><a style="color: #3580fb;font-size: 14px;line-height:25px;height：25px;" href="https://mbank.bankofshanghai.com/pweixin/static/index.html">支持取现，上海银行信用卡，额度最高15万</a></p>' +
	// '<p ><a style="color: #3580fb;font-size: 14px;line-height:25px;height：25px;" href="http://apply.gzcb.com.cn/mobile/index.html">支持取现，广州银行信用卡，最高15万额度</a></p>' +
	//
//	'<p ><a style="color: #3580fb;font-size: 14px;line-height:25px;" href="https://promotion.crfchina.com/localMarket/index.html?c=&s=imm3&salesmanNo=JKTZHZ0070&agentNo=JKTZHZ0070_20170701YKSQ002">凭身份证借6000，日息仅需3.6元，1天到款</a></p>' +
	'</div>'
var t8 = '<div style="position: fixed;bottom: 0px;margin: 0 auto;left: 0; right:0;max-width: 640px;min-width: 320px;">' +
	'<img src="static/H5/images/ba.gif" alt="" />' +
	'<a href="#gocj" style="position: absolute;display: block;right: 3%;width: 20%;height: 100%;top: 0px;"></a>' +
	'</div>'
var t9 ='<div class="" style="background-color: #FFFFFF;padding: 5px 5px;border: 1px solid #e9e9e9;">'+
		'			<h2 style="background: url(basePath()static/H5/images/icon.png)no-repeat;padding: 0 0 5px 18px;background-size:6px 28px ;font-weight: normal;border-bottom: 1px solid #e9e9e9;font-size:18px;">1000现金贷红包&nbsp;&nbsp;信用卡全额取现</h2>'+

		'			<div style="float: left;margin:8px 1%;width: 31.33%;">'+
		'				<b style="border: 1px solid #e6e6e7;display: block;">'+
		'				<img style="display: block;margin: 8px auto 0;width: 50%;" src="static/H5/images/hb.png">'+
		'			</b>'+
		'				<span>'+
		'	           		 <h3 style="color:red;font-size: 14px;text-align: center;">1000元现金</h3>'+
		'	            	<h4 style="color: red;font-size: 14px;text-align: center;">贷款红包</h4>'+
		'	        </span>'+
		'				<a style="display: block;background-color:#b7b7b7;border-radius: 3px;text-align: center;color: white;" href="APP下载页面">'+
		'					<em style="font-style: normal;">点击申请<img style="display: inline-block;height: 8px;width: 8px;margin-top: 10px;margin-left: 5px;" src="static/H5/images/arro.png" alt="" /></em>'+
		'				</a>'+
		'			</div>'+

		'			<div style="float: left;margin:8px 1%;width: 31.33%;">'+
		'				<b style="border: 1px solid #e6e6e7;display: block;"><img style="display: block;margin: 8px auto 0;width: 50%;" src="static/H5/images/logo_list7.png"></b>'+
		'				<span style="width: 100%;text-align: center;">'+
		'	            <h3 style="color: #7c7c7c;font-size: 14px;text-align: center;width: 100%;">'+
		'	               高额度信用卡</h3>'+
		'	            <h4 style="color: #04141a;font-size: 14px;text-align: center;">'+
		'	                免费取现10万</h4>'+
		'	        </span>'+
		'				<a style="display: block;background-color: #b7b7b7;border-radius: 3px;text-align: center;color: white;" target="_blank" href="http://creditcard.ecitic.com/h5/shenqing/index.jsp">'+
		'					<em style="font-style: normal;">点击申请<img style="display: inline-block;height: 8px;width: 8px;margin-top: 10px;margin-left: 5px;" src="static/H5/images/arro.png" alt="" /></em>'+
		'				</a>'+
		'			</div>'+

		'			<div style="float: left;margin:8px 1%;width: 31.33%;">'+
		'				<b style="border: 1px solid #e6e6e7;display: block;"><img style="display: block;margin: 8px auto 0;width: 50%;" src="static/H5/images/logo_list9.png"></b>'+
		'				<span>'+
		'	            <h3 style="color: #7c7c7c;font-size: 14px;text-align: center;">'+
		'	                高额度信用卡</h3>'+
		'	            <h4 style="color: #04141a;font-size: 14px;text-align: center;">'+
		'	                免费取现10万</h4>'+
		'	        </span>'+
		'				<a style="display: block;background-color:#b7b7b7;border-radius: 3px;text-align: center;color: white;" target="_blank" href="https://c.pingan.com/apply/public/newApplyCard.do">'+
		'					<em style="font-style: normal;"> 点击申请 <img style="display: inline-block;height: 8px;width: 8px;margin-top: 10px;margin-left: 5px;" src="static/H5/images/arro.png" alt="" /></em>'+
		'				</a>'+
		'			</div>'+
		'			<div style="clear: both;"></div>'+
		'		</div>'
function suiji(max, min) {
	return Math.floor(Math.random() * (max - min + 1) + min);
}

function ygshow(housingFund, car, house, mon) {
	console.log(housingFund)
	console.log(car)
	console.log(house)
	console.log(mon)
	var a, b, yg = true;
	if(mon <= 10000) {
		if(car === 2 || car === 3 || house === 2 || house === 3) {
			a = 9;
			b = 16
		} else {
			a = 0;
			b = 4;
		}
	}
	//此处缺公积金社保
	if(mon > 10000 && mon <= 50000) {
		if(car === 2 || car === 3 || house === 2 || house === 3) {
			a = 9;
			b = 16;
		} else if(car != 2 && car != 3 && house != 2 && house != 3 && (housingFund == 1 || housingFund == 2)) {
			a = 4;
			b = 11;
		} else {
			yg = false;
		}
	}
	if(mon > 50000 && mon <= 100000) {
		if(car === 2 || car === 3 || house === 2 || house === 3) {
			a = 9;
			b = 16;
		} else {
			yg = false;
		}
	}
	if(mon > 100000) {
		yg = false;
	}

	var data = {

		pinganhui: {
			src: "static/H5/images/4_04_1.jpg",
			flag: 0,
			name: "平安集团旗下",
			ti: "最快1天放款 ",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"

		},
		pingandai: {
			src: "static/H5/images/4_04_2.jpg",
			flag: 0,
			name: "平安集团旗下",
			ti: " 最高3万1分钟下款 ",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		},
		hengyi: {
			src: "static/H5/images/4_04_3.jpg",
			flag: 0,
			name: "恒易贷 ",
			ti: "最高额度20万 当天可下款",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		},
		yixing: {
			src: "static/H5/images/4_04_4.jpg",
			flag: 0,
			name: "宜信",
			ti: "贷款额度5万起 0抵押0担保 ",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		},
		dongfan: {
			src: "static/H5/images/4_04_5.jpg",
			flag: 0,
			name: "东方融资",
			ti: "累计放款额168亿元，利息低",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		},
		zhudai: {
			src: "static/H5/images/4_04_6.jpg",
			flag: 0,
			name: "助贷网",
			ti: " 有房有车，最高可贷500万",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		},
		niwdai: {
			src: "static/H5/images/4_04_7.jpg",
			flag: 0,
			name: "你我贷款",
			ti: " 0抵押0担保，最高可贷20万",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		},
		ztx: {
			src: "static/H5/images/4_04_8.jpg",
			flag: 0,
			name: "中腾信",
			ti: "无抵押个人信用贷,月入2000即可",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		},
		hbjr: {
			src: "static/H5/images/4_04_9.jpg",
			flag: 0,
			name: "厚本金融",
			ti: "有信用记录，最高可贷20万",
			yugu: yg ? suiji(a, b) + "万元" : mon + "元"
		}

	};

	//50000以上广深地区
	if(mon >= 50000 && (city === "广州" || city === "深圳")) {
		data.pinganhui.flag = 1;
		data.dongfan.flag = 1;
		data.zhudai.flag = 1;
	}
	//50000以上 ，11城市除广深
	if(mon >= 50000 && (city === "上海" || city === "苏州" || city === "无锡" || city === "南京" || city === "宁波" || city === "成都" || city === "青岛" || city === "杭州" || city === "北京")) {
		data.hbjr.flag = 1;
		data.pinganhui.flag = 1;
		data.dongfan.flag = 1;
	}
	//50000以上全国 除了11城市
	if(mon >= 50000 && city !== "广州" && city !== "深圳" && city !== "上海" && city !== "苏州" && city !== "无锡" && city !== "南京" && city !== "宁波" && city !== "成都" && city !== "青岛" && city !== "杭州" && city !== "北京") {
		data.ztx.flag = 1;
		data.hbjr.flag = 1;
		data.pinganhui.flag = 1
	}
	//30000-50000广深地区
	if(mon >= 30000 && mon < 50000 && (city === "广州" || city === "深圳")) {
		data.hbjr.flag = 1;
		data.pinganhui.flag = 1;
		data.zhudai.flag = 1

	}
	//30000-50000,全国除了广深
	if(mon >= 30000 && mon < 50000 && city !== "广州" && city !== "深圳") {
		data.ztx.flag = 1;
		data.hbjr.flag = 1;
		data.pinganhui.flag = 1;
	}
	//10000-30000,广深地区
	if(mon >= 10000 && mon < 30000 && (city === "广州" || city === "深圳")) {
		data.hbjr.flag = 1;
		data.pinganhui.flag = 1;
		data.zhudai.flag = 1

	}
	//10000-30000除广深
	if(mon >= 10000 && mon < 30000 && city !== "广州" && city !== "深圳") {
		data.ztx.flag = 1;
		data.hbjr.flag = 1;
		data.pinganhui.flag = 1;
	}

	//小于10000全国
	if(mon < 10000) {
		data.pinganhui.flag = 1;
		data.pingandai.flag = 1;
	}
	var html = '';
	for(var item in data) {
		if(data[item].flag === 0) {
			continue;
		}
		html += "<li class='clearfix'>" +
			"<span class='fl_L'>" + "<img src='" + data[item].src + "'/>" + "</span>" +
			"<p class='fl_L'>" + data[item].name + "</br>" + data[item].ti + "</p>" +
			"<b class='fl_L'>" + "[ 预估放贷 ]" + "<em class='orange'>" + data[item].yugu + "</em>" + "</b>" +
			"</li>"
	}
	$("#app").html(html)
}

document.write(t1)
document.write(t2)
//document.write(t7)
// document.write(t9)
//抽奖
// document.write(t3)
// document.write(t5)
var cjarr = [1,3]
var index = 4,
	timer, count =cjarr.length,jpindex=-1;
	ifclick = true;
$(".begain").click(function() {
	if(count <= 0) {
		$("#popup2").show()
	}
	if(ifclick && count > 0) {
		ifclick = false;
		count--;
		jpindex++;
		$("#dailyCount").text(count)
		init()
	}

});
var times = 0;

function init() {
	timer = setInterval(function() {
		times++;
		index++;
		if(index > 7) {
			index = 0;
		}
		roll()
		cj = cjarr[jpindex];
		
		if(times >= 30 && index == cj) {
			clearInterval(timer);
			ifclick = true;
			times = 0;
			console.log(index)
			console.log($(".lottery-unit-" + index).find("span").text())
			$("#prizeTitle .orange").html($(".lottery-unit-" + index).find(".jpname").text())
			$("#prizeTitle .lqtj").html($(".lottery-unit-" + index).find(".tit").text())
			$("#prizeUrl").attr("href", $(".lottery-unit-" + index).find(".href").text())
			$("#popup1").show()
			var imgsrc = $(".lottery-unit-" + index).find("img").attr("src");
			var jptext = $(".lottery-unit-" + index).find("span").text()
			var href = $(".lottery-unit-" + index).find(".href").text()
			var html = '<li class="clearfix">' +
				'<div class="pic">' +
				'<img src="' + imgsrc + '">' +
				'</div>' +
				'<div class="text">' +
				'<p>' + jptext + '</p>' +
				'</div>' +
				'<div class="butt">' +
				'	<a href="' + href + '" onClick="prizeClick(this)" target="_parent"><b>马上去领</b></a>' +
				'</div>' +
				'</li>';
			$(".prizeList").append(html)
		}

	}, 50)
}

function roll() {
	$(".lottery-unit-" + index).addClass("active").siblings().removeClass("active")
}
$(".dingdan_img").click(function() {
	$(".warp3 .dingdan").css("display", "none");
	$(".zhemu").css("display", "none")
});
$(document).on("click","#touch",function(){
    $(".art").hide();
})
$(".agreebtn").click(function(){
	$(".warp3 .dingdan").css("display", "none");
	$(".zhemu").css("display", "none")
	// F.agreeIns(tel, 1)
});
/*$(".agreebtn_close").click(function(){
	$(".warp3 .dingdan").css("display", "none");
	$(".zhemu").css("display", "none")
	F.agreeIns(tel, 0)
})*/

//$(".nobtn").click(function(){
//	$(".warp3 .dingdan").css("display", "none");
//	$(".zhemu").css("display", "none")
//	F.agreeIns(tel, 0)
//})

